From 6cabb121735a7385c2ff6b9b18c30f43d26b684a Mon Sep 17 00:00:00 2001 From: "iap10@freefall.cl.cam.ac.uk" Date: Mon, 18 Apr 2005 21:40:44 +0000 Subject: [PATCH] bitkeeper revision 1.1319 (4264295cjYBiljHc4G82B7WseRd9vA) The problem is that GCC4 is seeing is that variable such as frame (in grant_table.c) is passed into a function without initialization. Again for the variable sl1mfn (in shadow.c) does the same thing. So really the patches should be: Signed-off-by: Jerone Young --- xen/arch/x86/shadow.c | 2 +- xen/common/grant_table.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/shadow.c b/xen/arch/x86/shadow.c index 71867b7649..6f778a147f 100644 --- a/xen/arch/x86/shadow.c +++ b/xen/arch/x86/shadow.c @@ -1651,7 +1651,7 @@ static inline unsigned long shadow_make_snapshot( struct domain *d, unsigned long gpfn, unsigned long gmfn) { - unsigned long smfn, sl1mfn; + unsigned long smfn, sl1mfn = 0; void *original, *snapshot; u32 min_max = 0; int min, max, length; diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index 76ea981934..e93f05fd81 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -311,7 +311,7 @@ __gnttab_map_grant_ref( struct exec_domain *led; u16 dev_hst_ro_flags; int handle; - unsigned long frame, host_virt_addr; + unsigned long frame = 0, host_virt_addr; int rc; /* Returns 0 if TLB flush / invalidate required by caller. -- 2.30.2